public class Test {
    public static int com(int x,int y) {
        return x > y ? x : y;
    }
    public static double com(double x,double y,double z) {
        if(x>y) {
            return x > z ? x : z;
        }else {
            return y > z ? y : z;
        }
    }
    public static void main(String[] args) {
        int ret = com(10,20);
        double ret1 = com(2.1,1.3,5.8);
        System.out.println(ret);
        System.out.println(ret1);

    }
}
